<?php
include('../../../common/basic.php');
include('../admincore/videogroup_edit.php');

?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>视频分类编辑</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui_video.css" media="all" />
	<link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
	<link rel="stylesheet" href="../../css/main.css" media="all" />
</head>
<body>
<section class="layui-larry-box">
	<div class="larry-personal">
	    <div class="layui-tab">

        
		<form method="post" >
													
<?php
					$result = mysql_query('select * from aikcms_videogroup where id = '.$_GET['id'].' ');	
					if ($row = mysql_fetch_array($result)){
					?>
		 <div class="layui-form">
		<div class="layui-form-item">
			<div class="layui-inline">		
				<label class="layui-form-label">视频分组名称</label>
				<div class="layui-input-inline">
					<input class="layui-input" name="aik_videogroup_name" placeholder="视频分组名称" type="text" value="<?php echo $row['aik_videogroup_name'];?>" >
				</div>
			</div>
		</div><div class="layui-form-item">
				<div class="layui-inline">
				<label class="layui-form-label">观看会员组</label>
				<div class="layui-input-block">
				<input name="usergroup[]" class="tuijian" value="0"  title="无需会员" <?php echo $a = in_array("0", explode(",", $row['aik_videogroup_usergroup'])) ? 'checked' : '';?> type="checkbox"><div class="layui-unselect layui-form-checkbox"><span>无需会员</span><i class="layui-icon"></i></div>
				<?php  echo aik_videoselect_usergroup($row['aik_videogroup_usergroup']);?>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
				    <div class="layui-input-block">
				      <button class="layui-btn layui-btn-normal" name="update">点击添加</button>
				    </div>
				  </div>
		</div>
			<?php }?>
		</form> 
		    </div>
		</div>

</section>

<script type="text/javascript" src="../../layui/layui.js"></script>
</body>
</html>